html {
    zoom: 125%;
}
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/*标题栏*/
header {
    padding: 20px;
    text-align: center;
    background-image: url("/static/images/index_background.jpg");
    background-size: cover;
    color: #f8f8f8;
}

.top-container {
    display: flex;
    padding: 10px;
    text-align: center;
    align-items: center;
    background-color: transparent;
    justify-content: space-between;
}

.top-container a {
    margin-right: 10px;
    flex: 1;
    text-decoration: none;
    vertical-align: middle;
    color: lightgray;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
}

.user-profile {
    display: flex;
    justify-content: flex-end;
    /*align-items: center;*/
}

.person-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.logged-in-info .username {
    color: #383737FF;
    background-color: #96c5ee;
    padding: 10px 20px;
    border-radius: 5px;
}

.logged-in-info {
    position: relative;
}

.logged-in-info i {
    margin-right: 5px;
}

/*登入后用户信息*/
.dropdown-content {
    position: absolute;
    top: 100%;
    right:0;
    background-color: #f9f9f9;
    width: 160px;

    padding: 5px;
    display: none;
    box-shadow: 5px 5px 10px 0px rgb(76, 75, 75);
    border-radius: 10px;
}

.dropdown-content span,
.dropdown-content a{
    display: block;
    padding: 5px 0;
    color: #333;
    font-size: 14px;
    font-weight: normal;
}
.dropdown-content a {
    text-decoration: underline;
}
.dropdown-content div {
    display: flex;
    justify-content: space-between;
}

.dropdown-content:hover {
    display: block;
}

.username:hover + .dropdown-content,
.dropdown-content:hover {
    display: block;
}

.person-icon:hover + .logged-in-info .dropdown-content {
    display: block;
}


/*搜索框*/
.search-container {
    color: transparent;
    display: flex;
    width: 80%;
    text-align: center;
    margin: 20px auto; /* 设置上下边距为 20px，左右自动居中 */
    border-radius: 15px;
    box-shadow: 0 0 0.7rem rgba(0, 0, 0, 0.25), 0 0 0.7rem rgba(0, 0, 0, 0.22);
}

#search-input {
    flex: 1;
    padding: 15px;
    width: 30%;
    border: none;
    border-radius: 15px 0 0 15px;
    font-size: 1rem;
    background-color: #ccc;
}

#search-button {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    background-color: #96c5ee;
    border-radius: 0 15px 15px 0;
    color: #383737FF;
    border: none;
    cursor: pointer;
}

/*返回顶部按钮*/
#back-to-top-btn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 99;

    width: 42px;
    height: 42px;
    display: none;
    border: none;
    outline: none;
    background-color: white;
    color: #2a2a2a;
    cursor: pointer;
    border-radius: 50%;
}

#back-to-top-btn:hover {
    background-color: #c2c2c2;
}

#icon-up {
    display: inline-block;
    zoom: 140%;
}

#back-to-top-btn:hover #icon-up {
    display: none;
}

#text {
    color: #383737FF;
    display: none;
    font-size: 12px;
    font-weight: bold;
}

#back-to-top-btn:hover #text {
    display: inline-block;
}


footer {
    background-color: #414142;
    color: white;
    padding: 10px;
    text-align: center;
}

footer a {
    color: white;
}

/*主要内容，以上全是通用的搜索框、页标等*/
.main {
    display: flex;
    flex-direction: column;
    padding: 5px;
    min-height: 100vh;
    background-color: rgb(10, 12, 12);
}
